﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;
using DTO;

namespace BLL
{
	public class USERSBUS
	{
		public static DataTable GetListUSER()
		{
			USERSDAO b = new USERSDAO();
			return b.GetListUSERs();
		}
		public static List<USERS> GetListUSERs()
		{
			USERSDAO b = new USERSDAO();
			return b.GetListUSER();
		}
		public static String CreateNewID()
		{
			USERSDAO b = new USERSDAO();
			return b.CreatenewId();
		}
		public static bool INSERT(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.INSERT(bc);
		}
		public static bool UPDATE(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.UPDATE(bc);
		}
		public static bool DELETE(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.DELETE(bc);
		}
		public static bool ISLOGIN(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.ISLOGIN(bc);
		}
		public static USERS GETUSER(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.GETUSER(bc);
		}
		public static bool ISEXISTSUSERNAME(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.ISEXISTSUSERNAME(bc);
		}
		public static bool ISADMIN(USERS bc)
		{
			USERSDAO b = new USERSDAO();
			return b.ISADMIN(bc);
		}
	}
}
